package com.qyy.remotemonitor.http;

import com.qyy.remotemonitor.http.base.BaseResponseInfo;
import com.qyy.remotemonitor.http.bean.HttpOperationBean;
import com.qyy.remotemonitor.http.bean.HttpUploadCallRecordsBean;
import com.qyy.remotemonitor.http.bean.HttpUploadLocationBean;

import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * Created by wujiajun on 17/4/5.
 */

public interface ApiService
{
    @GET("/heartBean/bang")
    Flowable<BaseResponseInfo<HttpOperationBean>> queryOperation();
    @POST("/location/monitor")
    Flowable<BaseResponseInfo<HttpUploadLocationBean>> uploadLocation(@Body RequestBody requestBody);
    @POST("/callRecords/insert")
    Flowable<BaseResponseInfo<HttpUploadCallRecordsBean>> uploadCallRecords(@Body RequestBody requestBody);
}
